/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 01
 * Time: 14:19
 */
public class Test {
    public void func(){
        System.out.println("test");
    }
}
class Test2 extends Test{
    @Override
    public void func() {
        System.out.println("test2");
    }
    public static void main(String[] args) {
        Test test = new Test2();
        test.func();
    }
}


